package com.eascs.archive.service;


import com.eascs.admin.common.vo.ModelResult;
import com.eascs.app.dao.PageResult;
import com.eascs.archive.entity.ArchiveRecordEntity;
import com.eascs.archive.entity.CreditArchiveRecordEntity;
import com.eascs.archive.form.ArchivequeryForm;

public interface ArchiveRecordService {

	public ModelResult<Boolean> insertArchiveRecord(ArchiveRecordEntity entity);
	
	public ModelResult<Boolean> updateArchiveRecord(ArchiveRecordEntity entity);
	
	public ModelResult<ArchiveRecordEntity> queryArchiveRecord(String loanapplyNo,String bankType,String formType);
	
	public int updateArchiveRecordContentJson(String id,String json);
	
	CreditArchiveRecordEntity getById(String id);
	
	PageResult<Object[]> queryCreditArchive(ArchivequeryForm achivequeryForm);
	
	PageResult<Object[]> queryNewCreditArchive(ArchivequeryForm achivequeryForm);

	PageResult<Object[]> queryCreditArchiveDownloadData(ArchivequeryForm achivequeryForm);
	
	PageResult<Object[]> queryNewCreditArchiveDownloadData(ArchivequeryForm achivequeryForm);
}
